import java.util.Date;
import java.util.Random;

/**
 * Creat with IntelliJ IDEA
 * Description:
 * User:WZW
 * Date:2021-12-15
 * Time:4:03
 */
public class Question implements Runnable{

    boolean[] flg;//题目使用标记
    int num;//题号
    Test test;
    long time;//总用时
    long startTime;//程序开始时间
    long newQuestionTime;//新题目开始时间
    long endTime;
    int sgl,mul,jdg;//单选、多选、判断数量

    public Question() {
        flg = new boolean[30];
        for (int i = 0; i < 20; i++) {
            flg[i]=false;
        }
    }

    public long getTime(){
        endTime = new Date().getTime();
        time = (endTime-startTime)/1000;
        return time;
    }

    @Override
    public void run() {
        test = new Test();
        while (true){
            getTime();
            try {
                Thread.sleep(900);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
            if (sgl==5 && mul==5 && jdg==5){
                break;
            }
        }
    }

    String getNum(){//返回题号
        Random random = new Random();

    }
}
